//  Copyright © 2014 Allen County Public Library.

//        ACPL Mobile is free software: This program is distributed and you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.  ACPL Mobile is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, including without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ACPL Mobile. If not, see http://www.gnu.org/licenses/.

package us.in.lib.acpl.Mobile_ACPL.rest;

import org.androidannotations.annotations.rest.Get;
import org.androidannotations.annotations.rest.RequiresHeader;
import org.androidannotations.annotations.rest.Rest;
import org.springframework.http.converter.json.MappingJacksonHttpMessageConverter;

import us.in.lib.acpl.Mobile_ACPL.models.OverdriveCheckoutsResponse;


@Rest(converters = { MappingJacksonHttpMessageConverter.class }, rootUrl = "http://patron.api.overdrive.com")
public interface OverdrivePatronClient {
	
	void setHeader(String name, String value);
	String getHeader(String name);
	
	@Get("/v1/patrons/me/checkouts")
	@RequiresHeader("Authorization")
	OverdriveCheckoutsResponse getCheckouts();

}
